package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 期初期末对象 period_inventory
 * 
 * @author ruoyi
 * @date 2025-02-20
 */
public class PeriodInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 产品编号 */
    @Excel(name = "产品编号")
    private String code;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String name;

    /** 产品规格 */
    @Excel(name = "产品规格")
    private String spec;

    /** 类别 */
    @Excel(name = "类别")
    private String category;

    /** 存储单位 */
    @Excel(name = "存储单位")
    private String unit;

    /** 仓库 */
    @Excel(name = "仓库")
    private String warehouse;

    /** 期初 */
    @Excel(name = "期初")
    private BigDecimal initialStock;

    /** 入库 */
    @Excel(name = "入库")
    private BigDecimal incomingStock;

    /** 出库 */
    @Excel(name = "出库")
    private BigDecimal outgoingStock;

    /** 期末 */
    @Excel(name = "期末")
    private BigDecimal finalStock;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSpec(String spec) 
    {
        this.spec = spec;
    }

    public String getSpec() 
    {
        return spec;
    }
    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }
    public void setUnit(String unit) 
    {
        this.unit = unit;
    }

    public String getUnit() 
    {
        return unit;
    }
    public void setWarehouse(String warehouse) 
    {
        this.warehouse = warehouse;
    }

    public String getWarehouse() 
    {
        return warehouse;
    }
    public void setInitialStock(BigDecimal initialStock) 
    {
        this.initialStock = initialStock;
    }

    public BigDecimal getInitialStock() 
    {
        return initialStock;
    }
    public void setIncomingStock(BigDecimal incomingStock) 
    {
        this.incomingStock = incomingStock;
    }

    public BigDecimal getIncomingStock() 
    {
        return incomingStock;
    }
    public void setOutgoingStock(BigDecimal outgoingStock) 
    {
        this.outgoingStock = outgoingStock;
    }

    public BigDecimal getOutgoingStock() 
    {
        return outgoingStock;
    }
    public void setFinalStock(BigDecimal finalStock) 
    {
        this.finalStock = finalStock;
    }

    public BigDecimal getFinalStock() 
    {
        return finalStock;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("createTime", getCreateTime())
            .append("code", getCode())
            .append("name", getName())
            .append("spec", getSpec())
            .append("category", getCategory())
            .append("unit", getUnit())
            .append("warehouse", getWarehouse())
            .append("initialStock", getInitialStock())
            .append("incomingStock", getIncomingStock())
            .append("outgoingStock", getOutgoingStock())
            .append("finalStock", getFinalStock())
            .toString();
    }
}
